package conson.tech.manage.coupons.entity.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * ClassName: CouponsBatchVo
 * Description: 优惠券查询list列表
 *
 * @Author: ZYF
 * Date: 2020/07/20
 * Version: 1.0
 */
@ApiModel(value = "conson.tech.manage.coupons.entity.vo.CouponsGrantVo", description = "发放优惠券查询")
@Data
public class CouponsGrantVo implements Serializable {


    private static final long serialVersionUID = 8198614223349740109L;
    /**
     * 发放表id
     */
    @ApiModelProperty(value = "发放表id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    /**
     * 优惠券券码
     */
    @ApiModelProperty(value = "优惠券券码")
    private String couponsCode;

    /**
     * 优惠券类型
     */
    @ApiModelProperty(value = "优惠券类型")
    private Integer batchType;

    /**
     * 优惠券限额
     */
    @ApiModelProperty(value = "优惠券限额")
    private BigDecimal limitMoney;

    /**
     * y优惠券金额
     */
    @ApiModelProperty(value = "优惠券金额")
    private BigDecimal batchMoney;

    /**
     * 有效时间起期
     */
    @ApiModelProperty(value = "有效时间起期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime;

    /**
     * 有效时间止期
     */
    @ApiModelProperty(value = "有效时间止期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;

    /**
     * 发放时间
     */
    @ApiModelProperty(value = "发放时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime beginTime;

    /**
     * 批次ID
     */
    @ApiModelProperty(value = "批次Id")
    private Long batchId;

    /**
     * 状态
     */
    @ApiModelProperty(value = "状态")
    private Integer state;

}
